package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SubtypeTreatment implements NonparenthesizedValueExpressionPrimary {

    private int beginIndex;
    private int endIndex;
    private ValueExpression subtypeOperand;
    private TargetSubtype targetSubtype;

    public SubtypeTreatment(int beginIndex,
                            int endIndex,
                            ValueExpression subtypeOperand,
                            TargetSubtype targetSubtype) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.subtypeOperand = subtypeOperand;
        this.targetSubtype = targetSubtype;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public ValueExpression getSubtypeOperand() {
        return subtypeOperand;
    }

    public TargetSubtype getTargetSubtype() {
        return targetSubtype;
    }

}
